package cn.wx.scholar.core.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import cn.wx.common.persistence.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import cn.wx.scholar.core.service.ScholarFosService;
import cn.wx.common.persistence.web.ResponseData;
/**
 *   @description : ScholarFosPac 控制器
 *   ---------------------------------
 *   @author  
 *   @since 2018-11-30
 */
@RestController
@RequestMapping("/sholar/fosPac")
public class ScholarFosPacController extends BaseController {

    @Autowired
    private ScholarFosService scholarFosService;

	/**
     * @description : 通过条件获取ScholarFosPac
     * ---------------------------------
     * @author : 
     * @since : Create in 2018-11-30
     */
    @RequestMapping(value = "/query/list", method = RequestMethod.POST)
    public ResponseData queryList(@RequestParam(value = "fName") String fName) throws Exception {
        return success(scholarFosService.fosPac(fName));
    }
 
    /**
     * @description : 通过条件获取ScholarFosPac
     * ---------------------------------
     * @author : 
     * @since : Create in 2018-11-30
     */
    @RequestMapping(value = "/fosChild", method = RequestMethod.POST)
    public ResponseData fosChild(@RequestParam(value = "fName") String fName) throws Exception {
        return success(scholarFosService.fosChild(fName));
    }
    
    /**
     * @description : 通过条件获取ScholarFosPac
     * ---------------------------------
     * @author : 
     * @since : Create in 2018-11-30
     */
    @RequestMapping(value = "/fullView", method = RequestMethod.POST)
    public ResponseData fullView(@RequestParam(value = "fName") String fName) throws Exception {
        return success(scholarFosService.fullView(fName));
    }
    
}